package com.yangjun.common.comparator;

import java.util.Comparator;
import java.util.Map;

public class TargetItemComparator implements Comparator<Map<String,Object>> {
	@Override
	public int compare(Map<String, Object> map1, Map<String, Object> map2) {
		int sort1 = Integer.valueOf(map1.get("sort").toString());
		int sort2 = Integer.valueOf(map2.get("sort").toString());
		return  sort1>=sort2?1:-1;
	}
}
